package com.ty.skysystem.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ty.common.utils.PageUtils;
import com.ty.common.utils.Query;

import com.ty.skysystem.dao.ContactDao;
import com.ty.skysystem.entity.ContactEntity;
import com.ty.skysystem.service.ContactService;

@Service("contactService")
public class ContactServiceImpl extends ServiceImpl<ContactDao, ContactEntity>
    implements ContactService {

  @Override
  public PageUtils queryPage(Map<String, Object> params) {
    IPage<ContactEntity> page =
        this.page(new Query<ContactEntity>().getPage(params), new QueryWrapper<ContactEntity>());

    return new PageUtils(page);
  }
}
